package com.sl.au.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.AfterSaleTicket;
import com.sl.au.entity.AfterSaleTicketPay;

@Transactional(readOnly = true)
public interface AfterSaleTicketPayRepository extends JpaRepository<AfterSaleTicketPay, String> {
	/**
	 * 三包赔偿设备数据
	 * @param key
	 * @param pageable
	 * @return
	 */
	@Query(" select a from AfterSaleTicketPay a where a.afterSaleTicket.id =?1  ")
	Page<AfterSaleTicketPay> findPayDevice( String ticketId,Pageable pageable);
	
}
